import request from '@/plugin/axios'

export function accountLogin (data) {
  return request({
    url: 'v1/auth/login',
    method: 'post',
    data
  })
}

export function accountLogout () {
  return request({
    url: 'v1/auth/logout',
    method: 'post'
  })
}

export function isLogin () {
  return request({
    url: 'v1/auth/isLogin',
    method: 'post'
  })
}

export function getCode () {
  return request({
    url: 'v1/auth/code',
    method: 'post'
  })
}

export function queryPermissions () {
  return request({
    url: '/v1/auth/permission',
    method: 'post'
  })
}
